home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gnome-games / aisleriot / games / gold_mine.scm < prev    next >
Encoding:
Text File  |  2009-04-14  |  1.8 KB  |  70 lines

  1. ; AisleRiot - gold_mine.scm
  2. ; Copyright (C) 1998, 2003 Jonathan Blandford <jrb@mit.edu>
  3. ;
  4. ; This game is free software; you can redistribute it and/or modify
  5. ; it under the terms of the GNU General Public License as published by
  6. ; the Free Software Foundation; either version 2, or (at your option)
  7. ; any later version.
  8. ;
  9. ; This program is distributed in the hope that it will be useful,
  10. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ; GNU General Public License for more details.
  13. ;
  14. ; You should have received a copy of the GNU General Public License
  15. ; along with this program; if not, write to the Free Software
  16. ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  17. ; USA
  18.  
  19. (load "klondike.scm")
  20.  
  21. (define deal-one #f)
  22. (define deal-three #t)
  23. (define kings-only #f)
  24.  
  25. (define max-redeal 0)
  26.  
  27. (define tableau '(6 7 8 9 10 11 12))
  28. (define foundation '(2 3 4 5))
  29. (define stock 0)
  30. (define waste 1)
  31.  
  32. (define (new-game)
  33.   (initialize-playing-area)
  34.   (set-ace-low)
  35.  
  36.   (make-standard-deck)
  37.   (shuffle-deck)
  38.   
  39.   (add-normal-slot DECK)
  40.  
  41.   (if deal-three
  42.       (add-partially-extended-slot '() right 3)
  43.       (add-normal-slot '()))
  44.  
  45.   (add-blank-slot)
  46.   (add-normal-slot '())
  47.   (add-normal-slot '())
  48.   (add-normal-slot '())
  49.   (add-normal-slot '())
  50.   (add-carriage-return-slot)
  51.   (add-extended-slot '() down)
  52.   (add-extended-slot '() down)
  53.   (add-extended-slot '() down)
  54.   (add-extended-slot '() down)
  55.   (add-extended-slot '() down)
  56.   (add-extended-slot '() down)
  57.   (add-extended-slot '() down)
  58.  
  59.   (give-status-message)
  60.  
  61.   (list 7 3.1)
  62. )
  63.  
  64. (define (get-options)
  65.   '())
  66.  
  67. (define (apply-options options) #f)
  68.  
  69. (set-lambda new-game button-pressed button-released button-clicked button-double-clicked game-over game-won get-hint get-options apply-options timeout droppable? dealable?)
  70.